package org.jeecg.modules.htxincailiao.payment.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.htxincailiao.payment.constant.HTPaymentStatusEnum;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_payment
 * @Author: jeecg-boot
 * @Date:   2021-11-10 10:42:17
 * @Version: V1.0
 */
@Data
@TableName("ht_payment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_payment对象", description="ht_payment")
public class HTPayment implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**支付类型 0-微信支付 1-支付宝支付*/
	@Excel(name = "支付类型 0-微信支付 1-支付宝支付", width = 15, dicCode = "payment_type")
	@Dict(dicCode = "payment_type")
    @ApiModelProperty(value = "支付类型 0-微信支付 1-银联支付")
    private Integer paymentType;
	/**交易类型(0-NATIVE、1-JSAPI)*/
	@Excel(name = "交易类型(0-NATIVE、1-JSAPI)", width = 15)
    @ApiModelProperty(value = "交易类型(0-NATIVE、1-JSAPI)")
    private Integer tradeType;
	/**支付状态：0-待支付、1-已支付 2-已取消*/
	@Excel(name = "支付状态：0-待支付、1-已支付 2-已取消", width = 15, dicCode = "payment_status")
	@Dict(dicCode = "payment_status")
    @ApiModelProperty(value = "支付状态：0-待支付、1-已支付 2-已取消")
    private Integer paymentStatus;
	/**支付编号(交易流水号)*/
	@Excel(name = "支付编号(交易流水号)", width = 15)
    @ApiModelProperty(value = "支付编号(交易流水号)")
    private String paymentSn;
	/**订单ID*/
	@Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
	/**支付者ID（微信为OpenID，支付宝为OpenID）*/
	@Excel(name = "支付者ID（微信为OpenID，支付宝为OpenID）", width = 15)
    @ApiModelProperty(value = "支付者ID（微信为OpenID，支付宝为OpenID）")
    private String payerId;
	/**交易ID*/
	@Excel(name = "交易ID", width = 15)
    @ApiModelProperty(value = "交易ID")
    private String transactionId;
	/**订单OrderSN，用于第三方交易*/
	@Excel(name = "订单OrderSN，用于第三方交易", width = 15)
    @ApiModelProperty(value = "订单OrderSN，用于第三方交易")
    private String outTradeNo;
	/**支付金额*/
	@Excel(name = "支付金额", width = 15)
    @ApiModelProperty(value = "支付金额")
    private BigDecimal amount;
	/**支付描述*/
	@Excel(name = "支付描述", width = 15)
    @ApiModelProperty(value = "支付描述")
    private String paymentDescription;
	/**平台商户名*/
	@Excel(name = "平台商户名", width = 15)
    @ApiModelProperty(value = "平台商户名")
    private String platformMerchantName;
	/**逻辑删除：0-未删除、1-删除*/
	@Excel(name = "逻辑删除：0-未删除、1-删除", width = 15)
    @ApiModelProperty(value = "逻辑删除：0-未删除、1-删除")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    private Integer pageNo=1;

    @TableField(exist = false)
    private Integer pageSize=10;


}
